package com.alameda.mapper.type;

import com.alameda.pojo.type.AdMediaMiddleDO;
import com.alameda.type.vo.AdMediaMiddleVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

/**
 * 媒体文件类型关联 数据控制层
 *
 * @author Lv
 * @date 2024/07/20
 */
@Mapper
public interface AdMediaMiddleMapper extends BaseMapper<AdMediaMiddleDO> {
    /**
     * 读取分类信息
     *
     * @param mediaIdCollection 媒体文件id集合
     * @return
     */
    List<AdMediaMiddleVO> findByMediaIdIn(@Param("mediaIdCollection") Collection<Long> mediaIdCollection);
}
